package cn.test.pojo.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author bigBear
 * @version 1.0
 * @date 2024-10-21 13:46
 */
@Data
@ApiModel(description = "股票板块信息")
public class StockBlockDomain {

    @ApiModelProperty(value = "公司数量", required = true)
    private Integer companyNum;

    @ApiModelProperty(value = "交易量", required = true)
    private Long tradeAmt;

    @ApiModelProperty(value = "板块编码", required = true)
    private String code;

    @ApiModelProperty(value = "平均价格", required = true)
    private BigDecimal avgPrice;

    @ApiModelProperty(value = "板块名称", required = true)
    private String name;

    @ApiModelProperty(value = "当前日期", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date curDate;

    @ApiModelProperty(value = "交易总金额", required = true)
    private Long tradeVol;

    @ApiModelProperty(value = "涨幅", required = true)
    private BigDecimal updownRate;
}
